<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>test</title>
<script>


var a = 10, b = 20; 			// 变量初始化
var temp = a; 					// 定义临时变量存储a
a = b; 							// 把b的值赋值给a
b = temp; 						// 把临时变量的值赋值给b

a = [b, b = a  ][0]; 			// 通过数组快速交换数据


</script>
</head>
<body>




</body>
</html>
